<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="bean.Donate"%>
<%@page import="bean.Funding_information"%>
<%@page import="bean.Content"%>
<%@page import="dao.Fundraising_projectDao"%>
<%@page import="bean.Fundraising_project"%>
<%@page import="bean.Campus_construction"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
	<head>
		<link rel="shortcut icon" href="images/titleico.ico" />
		<link href="css/myA.css" type="text/css" rel="stylesheet">
		<link href="css/myCss.css" type="text/css" rel="stylesheet">
	</head>

	<body>
		<%
			ArrayList<Donate> donate_list = (ArrayList<Donate>) session
					.getAttribute("donate_list");
			ArrayList<Funding_information> funding_information_list = (ArrayList<Funding_information>) session
					.getAttribute("funding_information_list");
			ArrayList<Fundraising_project> fundraising_project_list = (ArrayList<Fundraising_project>) session
					.getAttribute("fundraising_project_list");
			ArrayList<Campus_construction> campus_construction_list = (ArrayList<Campus_construction>) session
					.getAttribute("campus_construction_list");
			if (donate_list == null) {
				response.sendRedirect("donate?page=option.jsp");
			} else if (funding_information_list == null) {
				response.sendRedirect("funding_information?page=option.jsp");
			} else if (fundraising_project_list == null) {
				response.sendRedirect("fundraising_project?page=option.jsp");
			} else if (campus_construction_list == null) {
				response.sendRedirect("campus_construction?page=option.jsp");
			}
		%>

		<jsp:include page="top.jsp"></jsp:include>
		<table width="960" border="0" cellpadding="0" cellspacing="0"
			align="center">
			<tr>
				<td width="298" valign="top">
					<jsp:include page="leftshow.jsp"></jsp:include>
				</td>
				<td width="22">
					&nbsp;&nbsp;
				</td>
				<td width="640" valign="top">
					<table width="640" cellpadding="0" cellspacing="0" height="38">
						<tr>
							<td>
								<hr color="#CC9966">
								<img src="images/jy.gif">
								<hr color="#CC9966">
							</td>
						</tr>
					</table>
					<table width="640" cellpadding="0" cellspacing="0">
						<c:forEach items="${fundraising_project_list}"
							var="fundraising_project">
							<tr>
								<td>
									<a href="projectshow.jsp?id=${fundraising_project.id }" title=${fundraising_project.project_title }
										class="style1">·${fundraising_project.project_title}</a>
								</td>
								<td align="center">
									[${fundraising_project.fundraising_project_date }]
								</td>
							</tr>
						</c:forEach>
						<tr>

							<td height="28">
								&nbsp;
							</td>
							<td width="25%" align="center">
								<a href="optionlist.jsp?oid=1" class="style1">更多>></a>
							</td>
						</tr>
					</table>
					<table width="640" cellpadding="0" cellspacing="0" height="38">
						<tr>
							<td>
								<hr color="#CC9966">
								<img src="images/xy.gif">
								<hr color="#CC9966">
							</td>
						</tr>
					</table>
					<table width="640" cellpadding="0" cellspacing="0">
						<c:forEach items="${campus_construction_list}" var="campus_construction">
							<tr>
								<td>
									<a href="campus_constructionshow.jsp?id=${campus_construction.id }" title="${campus_construction.campus_construct_title }" class="style1">·${campus_construction.campus_construct_title }</a>
								</td>
								<td align="center">
									[${campus_construction.campus_construction_date }]
								</td>
							</tr>
						</c:forEach>
						<tr>

							<td height="28">
								&nbsp;
							</td>
							<td width="25%" align="center">
								<a href="optionlist.jsp?oid=2" class="style1">更多>></a>
							</td>
						</tr>
					</table>
<!--					<table width="640" cellpadding="0" cellspacing="0" height="38">-->
<!--						<tr>-->
<!--							<td>-->
<!--								<hr color="#CC9966">-->
<!--								<img src="images/xygz.gif">-->
<!--								<hr color="#CC9966">-->
<!--							</td>-->
<!--						</tr>-->
<!--					</table>-->
<!--					<table width="640" cellpadding="0" cellspacing="0">-->
<!--						<tr>-->
<!--							<td height="28">-->
<!--								<a href="#" title="《天南地北山大人》刊物出版" class="style1">·《天南地北山大人》刊物出版</a>-->
<!--							</td>-->
<!--							<td width="25%" align="center">-->
<!--								[2013-04-08 14:41]-->
<!--							</td>-->
<!--						</tr>-->
<!--						<tr>-->
<!---->
<!--							<td height="28">-->
<!--								&nbsp;-->
<!--							</td>-->
<!--							<td width="25%" align="center">-->
<!--								<a href="optionlist.jsp?oid=3" class="style1">更多>></a>-->
<!--							</td>-->
<!--						</tr>-->
<!--					</table>-->
				</td>
			</tr>
		</table>
		<jsp:include page="bottom.jsp"></jsp:include>
		
		<%
			if(donate_list != null && fundraising_project_list != null && funding_information_list != null && campus_construction_list != null) {
				session.removeAttribute("donate_list");
				session.removeAttribute("campus_construction_list");
				session.removeAttribute("fundraising_project_list");
				session.removeAttribute("funding_information_list");
			}
		%>
	</body>
</html>
